import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import router from "./router/index"
// 路由守卫
import "./guard"
import breadCrumb from "./components/breadCrumb/index.vue"
let app = createApp(App)

// fetch("http://chst.vip/data/index.json")
// .then(body=>body.json())
// .then(res=>{
//     console.log(res);
// })
// 使用路由
app.use(router)

// 全局面包屑组件
app.component('breadCrumb',breadCrumb)

// 事件总线
import bus from "./untils/bus"

app.config.globalProperties.bus = bus

app.mount('#app')
